﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;


public class taulu : MonoBehaviour {

	public int player1points;
	public int player2points;

	public playerborder player1;
	public playerborder player2;
	Text text;
	// Use this for initialization
	void Start () {
		text = GetComponent<Text> ();
	
		player1 = GameObject.Find ("arenaborderleft").GetComponent <playerborder>();
		player2 = GameObject.Find ("arenaborderright").GetComponent <playerborder>();
	}
	
	// Update is called once per frame
	void Update () {
	
		player1points = player1.pojot;
		player2points = player2.pojot;

		text.text = player1points + "     ||     " + player2points;

	}
}
